package com.anolesoft.amljmes.fourteenDispatch.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MesPlanDispatchingDto implements Serializable {
    private String objuid;//主键
    private String pacrNo;//制造记录条码
    private String jixing;//机型
    private String tuhao;//图号
    private String paigonghao;//派工号
    private String gongxuid;//工序号
    private String gongxuname;//工序名
    private String gongxumark;//工序标记
    private String gongxuwhgt;//工序内容
    private String paigongren;//派工人
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private LocalDate paigongtime;//派工时间
    private String caozuozhe;//操作者
    private String quxiaoren;//取消人
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private LocalDate quxiaotime;//取消时间
    private Integer state; //状态  0默认  1取消
    private String factoryId;//厂代号
    private String processTraceObj;//工序主键
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private LocalDate checktime;//考核时间
    private String checktimeStr;//考核时间字符串
    private Integer no;
    private Integer processstate;//是否完工
    private Integer urgency;//紧急程度

    //新增字段
    private String jiedanren;//接单人
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private LocalDate jiedantime;//接单时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private LocalDate planstarttime;//计划开始时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private LocalDate planendtime;//计划结束时间
    private String qiliang;//当前工序期量
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private LocalDate plantime;//当前工序计划结束时间
}
